package com.ccys.db.entity;

import com.ccys.db.rely.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
* Created by Mybatis Generator on 2024/01/23
*/
@Data
@ApiModel("问诊中使用的promo code记录")
@Table(name = "tbl_booking_promo_code")
@NoArgsConstructor
@AllArgsConstructor
public class TblBookingPromoCode extends BaseEntity {
    /**
     * bookingId
     */
    @Column(name = "booking_id")
    @ApiModelProperty("bookingId")
    private String bookingId;

    /**
     * promo_code_Id
     */
    @Column(name = "promo_code_id")
    @ApiModelProperty("promo_code_Id")
    private String promoCodeId;

    /**
     * 名称
     */
    @ApiModelProperty("名称")
    private String name;

    /**
     * 患者标识符
     */
    @Column(name = "patient_identifier")
    @ApiModelProperty("患者标识符")
    private String patientIdentifier;

    /**
     * 是否可重复使用：0-否，1-是
     */
    @ApiModelProperty("是否可重复使用：0-否，1-是")
    private Integer reusable;

    /**
     * 可用最大数量
     */
    @Column(name = "limit_number")
    @ApiModelProperty("可用最大数量")
    private Integer limitNumber;

    /**
     * 已用数量
     */
    @Column(name = "used_number")
    @ApiModelProperty("已用数量")
    private Integer usedNumber;

    /**
     * 类型
     */
    @ApiModelProperty("类型")
    private Integer type;

    /**
     * 金额
     */
    @ApiModelProperty("金额")
    private BigDecimal amount;

    /**
     * 开始日期
     */
    @Column(name = "start_date")
    @ApiModelProperty("开始日期")
    private Date startDate;

    /**
     * 结束日期
     */
    @Column(name = "end_date")
    @ApiModelProperty("结束日期")
    private Date endDate;

    @Column(name = "is_active")
    private Integer isActive;

    @Column(name = "code_version")
    private Integer codeVersion;

    /**
     * 患者标识符值
     */
    @Column(name = "patient_identifier_value")
    @ApiModelProperty("患者标识符值")
    private String patientIdentifierValue;

    /**
     * 是否已应用：0-否，1-是
     */
    @Column(name = "is_applied")
    @ApiModelProperty("是否已应用：0-否，1-是")
    private Integer isApplied;

    /**
     * 折扣金额
     */
    @Column(name = "discount_amount")
    @ApiModelProperty("折扣金额")
    private BigDecimal discountAmount;

    /**
     * 折扣快递金额
     */
    @Column(name = "discount_amount_delivery")
    @ApiModelProperty("折扣快递金额")
    private BigDecimal discountAmountDelivery;

    /**
     * 折扣药物金额
     */
    @Column(name = "discount_amount_medication")
    @ApiModelProperty("折扣药物金额")
    private BigDecimal discountAmountMedication;
}